const btn_normal = document.querySelector('.btn-normal');
btn_normal.addEventListener('click', function () {
    location.href = '../FlappyBird-normal/flappy bird.html'
})
localStorage.getItem('bestScore-normal') ? btn_normal.children[5].innerHTML = `你的最高分数是 ${localStorage.getItem('bestScore-normal')}` : btn_normal.children[5].innerHTML = `你的最高分数是 0`

const btn_easy = document.querySelector('.btn-easy');
btn_easy.addEventListener('click', function () {
    location.href = '../FlappyBird-easy/flappy bird.html'
})
localStorage.getItem('bestScore-easy') ? btn_easy.children[5].innerHTML = `你的最高分数是 ${localStorage.getItem('bestScore-easy')}` : btn_easy.children[5].innerHTML = `你的最高分数是 0`

const btn_hard = document.querySelector('.btn-hard');
btn_hard.addEventListener('click', function () {
    location.href = '../FlappyBird-hard/flappy bird.html'
})
localStorage.getItem('bestScore-hard') ? btn_hard.children[5].innerHTML = `你的最高分数是 ${localStorage.getItem('bestScore-hard')}` : btn_hard.children[5].innerHTML = `你的最高分数是 0`

const btn_veryhard = document.querySelector('.btn-veryhard');
btn_veryhard.addEventListener('click', function () {
    location.href = '../FlappyBird-veryhard/flappy bird.html'
})
localStorage.getItem('bestScore-veryhard') ? btn_veryhard.children[5].innerHTML = `你的最高分数是 ${localStorage.getItem('bestScore-veryhard')}` : btn_veryhard.children[5].innerHTML = `你的最高分数是 0`